<!--
 * @Author: huangyq
 * @Date: 2022-04-22 10:32:00
 * @LastEditTime: 2022-04-26 15:35:08
 * @LastEditors: huangyq
 * @Description: keep alive 包装器
 * @FilePath: /vue3-boilerplate-pc-client/src/components/KeepAliveWrapper/index.vue
-->
<template>
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component"></component>
    </keep-alive>
  </router-view>
</template>

<script setup lang="ts"></script>

<style scoped></style>
